package com.ygbhu.design.single;

/**
 * @program: design-pattern
 * @description: 饿汉式单例
 * @author: smzhu3
 * @create: 2021-06-15 15:49
 **/
public class Hungry {
    private Hungry(){}

    private final static Hungry HUNGRY = new Hungry();
    public  static Hungry getInstance(){
        return HUNGRY;
    }
}
